package com.lin.chapter36;

public class Beggar extends EventCustomer {
    public Beggar(){
        super(EventCustomType.DEL);
    }

    @Override
    public void exec(ProductEvent event) {
        Product source = event.getSource();
        ProductEventType eventType = event.getEventType();
        System.out.println("乞丐处理事件:" + source.getName() + "销毁，事件类型=" + eventType);
    }
}
